package com.lizhenhua.api.feignClient;

import com.lizhenhua.api.follback.OrderSaveFollBack;
import com.lizhenhua.fmmall.beans.Orders;
import com.lizhenhua.fmmall.beans.ShoppingCartVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
@FeignClient(value = "order-add", fallback = OrderSaveFollBack.class)
public interface OrderSaveFeignClient {
    @PostMapping("/order/save")
    public List<ShoppingCartVo> saveOrder(@RequestParam("cids") String cids, @RequestBody Orders orders);
}
